home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7353 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: newsfeed.direct.ca!usenet
  2. From: etoivane@direct.ca (Ed Toivanen)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Using char array in functions
  5. Date: 25 Feb 1996 21:26:14 GMT
  6. Organization: Your Organization
  7. Distribution: world
  8. Message-ID: <4gqk5m$jno@aphex.direct.ca>
  9. References: <20FEB199609155775@sundog.caltech.edu>
  10. NNTP-Posting-Host: 204.174.243.150
  11. Mime-Version: 1.0
  12. Content-Type: Text/Plain; charset=US-ASCII
  13. X-Newsreader: WinVN 0.99.6
  14.  
  15. In article <20FEB199609155775@sundog.caltech.edu>, 
  16. taylor@sundog.caltech.edu395-3807,MC264-33CALTECHPASADENACA91125 says...
  17. >
  18. >I've searched the faq's and postings, but still am looking for a clear 
  19. >explanation on how to use arrays of char strings in functions, especially when 
  20. >I want to have the function modify the array.  I find I can't just pass the 
  21. >name of the string as a pointer as I do for single strings.
  22.  ^^^^
  23.  
  24. As I just learned from my midterm(the hard way, in other words!) you have to 
  25. pass the address of the name of the array if you expext to modify more than a 
  26. copy of the thing.  
  27.  
  28. Ed
  29.  
  30.  
  31.  
  32.  
  33.